<?php 
session_start();

test();

function test(){
	$_SESSION['d'] = 324234;
}


echo $_SESSION['d'];


?>